import request from '@/utils/request'

// 查询认证表列表
export function listBecome(query) {
  return request({
    url: '/auth/become/list',
    method: 'get',
    params: query
  })
}

// 查询房源表详细
export function getBecomeInfo(becomeId) {
  return request({
    url: '/auth/become/' + becomeId,
    method: 'get'
  })
}

// 修改房源表
export function updateBecome(becomeId,data) {
  return request({
    url: '/auth/become/update/' + becomeId,
    method: 'post',
    data: data
  })
}

// 删除房源表
export function delBecome(becomeId) {
  return request({
    url: '/auth/become/' + becomeId,
    method: 'delete'
  })
}
